package com.fzl.lotterysystem.service;

import com.fzl.lotterysystem.controller.param.DrawPrizeParam;
import com.fzl.lotterysystem.controller.param.ShowWinningRecordsParam;
import com.fzl.lotterysystem.dao.dataobject.WinningRecordDO;
import com.fzl.lotterysystem.service.DTO.WinningRecordDTO;

import java.util.List;


public interface DrawPrizeService {
    //异步抽奖接口（生产者）
    public void drawPrize(DrawPrizeParam drawPrizeParam);

    /**
     * 校验数据是否有效
     *
     * @param drawPrizeParam
     * @return
     */
    boolean checkDrawPrizeParam(DrawPrizeParam drawPrizeParam);

    /**
     * 保存中奖名单
     * @param param
     */
    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    /**
     * 删除中奖名单
     */
    void deleteRecords(Long activityId, Long prizeId);

    /**
     * 查询中奖名单
     * @param param
     * @return
     */
    List<WinningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
